import { defHttp } from '@/utils/http/axios';

// 获取权限能力
export function getPermissionTypeList() {
  return defHttp.get({
    url: '/system/otaDouyinShopInfo/getPermissionTypeList',
    method: 'get',
  });
}

// 查询抖音门店信息列表
export function list(query, data) {
  return defHttp.get({
    url: '/system/otaDouyinShopInfo/list',
    method: 'get',
    params: query,
    data: data,
  });
}

// 新增抖音门店信息
export function add(data) {
  return defHttp.post({
    url: '/system/otaDouyinShopInfo/add',
    method: 'post',
    data: data,
  });
}

// 修改抖音门店信息
export function update(data) {
  return defHttp.put({
    url: '/system/otaDouyinShopInfo/update',
    method: 'put',
    data: data,
  });
}

// 删除抖音门店信息
export function remove(id) {
  return defHttp.delete({
    url: '/system/otaDouyinShopInfo/remove/' + id,
    method: 'delete',
  });
}

// 获取抖音门店信息详细信息
export function details(id) {
  return defHttp.get({
    url: '/system/otaDouyinShopInfo/details/' + id,
    method: 'get',
  });
}

// 获取授权链接
export function getAuthorizeUrl(id) {
  return defHttp.post({
    url: '/system/otaDouyinShopInfo/getAuthorizeUrl/' + id,
    method: 'post',
  });
}

// 抖音POI匹配
export function poi(id) {
  return defHttp.post({
    url: '/system/otaDouyinShopInfo/poi/' + id,
    method: 'post',
  });
}
